<template>
  <svg width="16" height="16" :type="type" viewBox="0 0 1024 1024">
    <title v-if="title">{{ title }}</title>
    <g v-html="svgHtml"></g>
  </svg>
</template>
<script>
import icons from "./index.js";
export default {
  props: ["type", "title"],
  computed: {
    svgHtml: function() {
      return icons[this.type];
    },
  },
};
</script>
<style></style>
